package com.qidian.md.controller;

import com.qidian.md.service.BomItemService;
import com.qidian.mes.pojo.md.BomItem;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 18林梦雅
 * @Company 起点编程
 * @Time 2023/11/3 19:37
 * @Description
 */

@RestController
@RequestMapping("/bomItem")
@CrossOrigin
public class BomItemController {


@Autowired
BomItemService bomItemService;




    @GetMapping("/listBomItem")
    public MESResult listBomItem(@RequestBody BomItem bomItem){
        System.out.println(bomItem+"++++++++++++++++++++++++++++++++++++++++++");
        return bomItemService.queryByItemId(bomItem);
    }

}
